package com.jingzhe.controller;

import org.apache.shiro.SecurityUtils;
import org.apache.shiro.session.Session;
import org.apache.shiro.subject.Subject;

public class CommonWeb {
	protected Integer getUserId() {
		Subject subject = SecurityUtils.getSubject();
		Session session = subject.getSession();
		return (Integer) session.getAttribute("userId");
	}
}
